EPT/VT-d: bug fix for EPT/VT-d table sharing
authorKeir Fraser <keir@xen.org>
Mon, 10 Jan 2011 08:40:32 +0000 (08:40 +0000)
committerKeir Fraser <keir@xen.org>
Mon, 10 Jan 2011 08:40:32 +0000 (08:40 +0000)
commit6cd8743754e43125aba681f11b94e2d8bbb413e0
treeb63a74a6f152b92b11d8e24845e9497aaf343190
parent4306e1ed46b7d0b3b44e69983f8701ce7785b669
EPT/VT-d: bug fix for EPT/VT-d table sharing

This patch makes following changes: 1) Moves EPT/VT-d sharing
initialization back to when it is actually needed to make sure
vmx_ept_vpid_cap has been initialized.  2) added page order parameter
to iommu_pte_flush() to tell VT-d what size of page to flush.  3)
added hap_2mb flag to ease performance studies between base 4KB EPT
size and when 2MB and 1GB page size support are enabled.

Signed-off-by: Allen Kay <allen.m.kay@intel.com>
xen/arch/x86/mm/hap/p2m-ept.c
xen/arch/x86/mm/p2m.c
xen/drivers/passthrough/vtd/iommu.c
xen/include/xen/iommu.h